<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/vectrics.tld"    prefix="vectrics" %>
<%@ page import="org.vectrics.recruiter.config.*" %>
<%@ page import="org.vectrics.provider.*" %>
<%@ page import="org.vectrics.user.*" %>
<%@ page import="org.vectrics.*" %>

<%
	Person authPerson = CoreServiceLocator.getUserAuthService().getAuthorizedPerson(request.getSession());
	if (authPerson == null)
		throw new SystemException("Could not find auth person");
	String userName = authPerson.getUser().getUserName();
	String password = authPerson.getUser().getPassword();
%>

<jsp:useBean id="newUserLoginProfileForm" class="org.vectrics.recruiter.struts.NewUserLoginProfileForm2" scope="request"/>

<table width="450">
	<tr>
		<td valign="middle" >
			<html:form action="/public/newuser/saveAndLogin" method="POST">
				<input type="hidden" name="userName" value="<%=userName%>"/>
				<input type="hidden" name="password" value="<%=password%>"/>
				<input type="hidden" name="login" value="true"/>
				
				<table width="100%">
					<tr>
						<td valign="middle" width="50%">
							<table>
								<tr>
									<td valign="middle" width="50%" colspan="2">
										<p class="stdFont">You are now a registered user.&nbps;You can now create job agents which will e-mail you when your criteria are met for new job postings on this site.</p>
									</td>
								</tr>

								
								<tr>
									<td valign="TOP" align="left"></td>
									<td valign="TOP" align="left">
										<vectrics:formButton name="submit" code="public.button.ok" phraseCode="button.ok"/>
									</td>
								</tr>
								
							</table>
						</td>
					</tr>
				</table>
			</html:form>
		</td>
	</tr>
</table>
